<?php
error_reporting(E_ALL);
require "product/ProductFactory.php";

/*$obj = ProductFactory::getProduct(ProductFactory::TYPE_BOOKS);

echo "<pre>";
var_export($obj->getList());
echo "</pre>";*/

//ProductFactory::getProduct(ProductFactory::TYPE_BOOKS);
//ProductFactory::getProduct(ProductFactory::TYPE_DOGS);
ProductFactory::getProduct([ProductFactory::TYPE_BOOKS,ProductFactory::TYPE_DOGS]);

echo "<pre>";
var_export(ProductDataCenter::getList());
echo "</pre>";

echo "<hr />";
ProductDataCenter::remove(ProductFactory::TYPE_BOOKS);
echo "<pre>";
var_export(ProductDataCenter::getList());
echo "</pre>";